package com.cszjzx.member.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

public interface MemberlockDAO{
	/**
	 *提供身份证号参数锁定团员
	 * @throws SQLException 
	 */
	public  void LockMember(String idcard) throws SQLException;
	
	/**
	 * 删除锁定
	 * @param idcard
	 * @throws SQLException 
	 */
	public  void delete(String idcard) throws SQLException;
	
	/**
	 * 
	 * @param idcard
	 * @return 是否被锁定
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	public boolean IsLock(String idcard) throws SQLException, IOException, ClassNotFoundException;
	
	/**
	 * 在阶段浏览中的班级浏览时，需要显示属于该班级该阶段的团员是否有属于正在被操作的
     * 由于团员现在还处于这个班级（member表中团员仍属于该major），只是templeMember表中该团员的major可能是有变化的
	 * @param major
	 * @return
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	public List<String> findMemberAndIslockByMajorAndProcess(String major, String process) throws ClassNotFoundException, SQLException, IOException;
}
